package Product;

public class productPrinter {

	// Creates two products and test methods on both
	public static void main(String[] args) {

		Product AppleMac = new Product("Apple Macintosh", 599.99);
		Product Windows  = new Product("Hand me down Windows", 199.99);
		
		System.out.println(AppleMac.getName() + " : " + AppleMac.getPrice());
		System.out.println(Windows.getName() + " : " + Windows.getPrice());
		
		AppleMac.reducePrice(200);
		Windows.reducePrice(199.99);
		
		System.out.println();
		
		System.out.print("OOOHHH Lookee, there is a sale on " + AppleMac.getName() + ".");
		System.out.println(" The new price is " + AppleMac.getPrice());
		
		System.out.print("Couldn't sell " + Windows.getName() + ".");
		System.out.println(" The new price is " + Windows.getPrice() + " (Go figure!)");

	}

}
